$(document).ready(function() { 
  $('#metodopago_met_numerotdc').keypress( 
    function(event) { 
      return (
event.which == 8 ||
(event.which >= 48) && (event.which <= 57)
      ); 
    } 
  ); 
}); 

